home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
COMM
/
PPL4P10A
/
LOGIN.SS
< prev
next >
Wrap
Text File
|
1995-02-20
|
2KB
|
90 lines
###############################
# --- login.ss --- #
# log onto MSC BBS (TRIBBS) #
###############################
# compile with builder, ver 2 #
###############################
#
# define parameters to use
#
USER: STRING "GUEST GUEST!"
PASSWORD: STRING "GUEST!"
PHONE: STRING "1,205,880,9748!"
#
# Dial phone
#
SETPACE 0.2
SETWAIT 5.0
REPLY "!AT!"
WAITFOR "OK"
IFTRUE DIAL
SAY "Expected 'OK' not received"
GOTO ERROR
DIAL:
SETWAIT 45.0
SAY "Dialing "
SAY PHONE
REPLY "ATDT"
REPLY PHONE
WAITFOR "CONNECT"
IFTRUE LOGIN
SAY "'CONNECT' not received"
GOTO ERROR
#
# no graphics
#
#
LOGIN:
SETWAIT 30
REPLY CR
WAITFOR "graphics (y/N)?|LAST name:"
IF "0" THEN GET_NAME
IF "1" THEN GOT_NAME
SAY "'graphics (y/N)?' not received"
GOTO ERROR
#
# enter name
#
GET_NAME:
REPLY CR
WAITFOR "LAST name:"
IFTRUE GOT_NAME
SAY "'LAST name' not received"
GOTO ERROR
GOT_NAME:
REPLY USER
#
# enter password
#
WAITFOR "password:"
IFTRUE GOT_PASS
SAY "'password:' not received"
GOTO ERROR
GOT_PASS:
REPLY PASSWORD
#
# "more?" or "Main Menu:"
#
MORE:
WAITFOR "more?|Main Menu:"
IF "1" THEN GOT_MAIN
IFNOT "0" THEN ERROR
REPLY CR
GOTO MORE
GOT_MAIN:
REPLY CR
SAY "logged on"
HALT
#
# error exit
#
ERROR: SAY "Error !"
STATUS
HALT
#
# common strings
#
CR: STRING "^M"
#
END